﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ExamSystem.Mdeol;
using ExamSystem.DAL;
namespace ExamSystem.BLL
{
    public class TpagerBLL
    {
        private TpagerDAL td = new TpagerDAL();
        
        /// <summary>
        /// 根据试卷编号查询是否有数据
        /// </summary>
        public Tpager selecttpid(int tpid)
        {
            return td.selecttpid(tpid);
        }


        /// <summary>
        /// 根据课程编号修改数据
        /// </summary>
        public List<Tpager> queryall()
        {
            return td.queryall();
        }


         //添加试卷信息
        public int insert(Tpager t)
        {
            return td.insert(t);
        }



        /// <summary>
        /// 根据课程编号修改数据
        /// </summary>
        public int update(Tpager t)
        {
            return td.update(t);
        }



        
        /// <summary>
        /// 根据试卷编号删除数据
        /// </summary>
        public bool delete(int id)
        {
            return td.delete(id);
        }



         //删除学生试卷表信息
        public bool updatetpagerstudent(int tpid, string stuids)
        {
            return td.updatetpagerstudent(tpid,stuids);
        }




        //删除试卷试题表信息
        public bool updatetpagerquestion(int tpid, string stuids)
        {
            return td.updatetpagerquestion(tpid, stuids);
        }



        
    }
}